package tank.server.game;

import java.awt.*;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;


/**
 * 关卡
 */
public class Stage {

    //英雄集合
    private volatile Map<String,Hero> heros = new ConcurrentHashMap<>();

    public Hero createHero(String remote){
//        Random random = new Random();
//        int x = 200 + random.nextInt(300);
        Hero hero = new Hero(300 ,700, Color.CYAN);
        heros.put(remote,hero);
        hero.setStarted(true);
        return hero;
    }

    public Map<String, Hero> getHeros() {
        return heros;
    }

    public void setHeros(Map<String, Hero> heros) {
        this.heros = heros;
    }
}
